package com.etc.entity;

import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

@Component
public class AdContent implements Serializable {
    /**
    * 广告ID
    */
    private Long id;

    /**
    * 名称
    */
    private String name;

    /**
    * 广告分类名称
    */
    private String title;

    /**
    * 广告所属一级分类ID
    */
    private Long categoryid1;

    /**
    * 广告所属二级分类ID
    */
    private Long categoryid2;

    /**
    * 广告所属三级分类ID
    */
    private Long categoryid3;

    private String categoryname3;

    /**
    * 排序序号(越大优先级越低)
    */
    private Integer sort;

    /**
    * 广告图片
    */
    private String img;

    /**
    * 广告图片尺寸
    */
    private String imgSize;

    /**
    * 广告链接
    */
    private String url;

    /**
    * 创建时间
    */
    private Date createTime;

    /**
    * 修改时间
    */
    private Date updateTime;

    /**
    * 广告状态
    */
    private String status;

    /**
    * 描述
    */
    private String description;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Long getCategoryid1() {
        return categoryid1;
    }

    public void setCategoryid1(Long categoryid1) {
        this.categoryid1 = categoryid1;
    }

    public Long getCategoryid2() {
        return categoryid2;
    }

    public void setCategoryid2(Long categoryid2) {
        this.categoryid2 = categoryid2;
    }

    public Long getCategoryid3() {
        return categoryid3;
    }

    public void setCategoryid3(Long categoryid3) {
        this.categoryid3 = categoryid3;
    }

    public String getCategoryname3() {
        return categoryname3;
    }

    public void setCategoryname3(String categoryname3) {
        this.categoryname3 = categoryname3;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getImgSize() {
        return imgSize;
    }

    public void setImgSize(String imgSize) {
        this.imgSize = imgSize;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public AdContent() {
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", title=").append(title);
        sb.append(", categoryid1=").append(categoryid1);
        sb.append(", categoryid2=").append(categoryid2);
        sb.append(", categoryid3=").append(categoryid3);
        sb.append(", categoryname3=").append(categoryname3);
        sb.append(", sort=").append(sort);
        sb.append(", img=").append(img);
        sb.append(", imgSize=").append(imgSize);
        sb.append(", url=").append(url);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", status=").append(status);
        sb.append(", description=").append(description);
        sb.append("]");
        return sb.toString();
    }
}